﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Reflection;
using System.Data.Linq;

namespace SDT.DataService.Contexts
{
    public class News_SiteContext : BDS_SpiderDataContext
    {
        [Function(Name = "dbo.InsertChannel")]
        public int InsertChannel([Parameter(Name = "SiteId", DbType = "Int")] System.Nullable<int> siteId, [Parameter(Name = "Name", DbType = "NVarChar(500)")] string name)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), siteId, name);
            return ((int)(result.ReturnValue));
        }
        [Function(Name = "dbo.UpdateChannel")]
        public int UpdateChannel([Parameter(Name = "SiteID", DbType = "Int")] System.Nullable<int> siteID, [Parameter(Name = "Name", DbType = "NVarChar(500)")] string name)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), siteID, name);
            return ((int)(result.ReturnValue));
        }
    }
}
